// 环境配置文件

interface Config {
  baseUrl: string;
  apiTimeout: number;
  uploadUrl: string;
  aiApiUrl: string;
}

const devConfig: Config = {
  baseUrl: 'http://localhost:3000/api',
  apiTimeout: 10000,
  uploadUrl: 'http://localhost:3000/upload',
  aiApiUrl: 'http://localhost:3000/ai'
};

const prodConfig: Config = {
  baseUrl: 'https://api.intellidl.com/api',
  apiTimeout: 15000,
  uploadUrl: 'https://api.intellidl.com/upload',
  aiApiUrl: 'https://api.intellidl.com/ai'
};

// 根据环境变量选择配置
const config: Config = import.meta.env.MODE === 'production' ? prodConfig : devConfig;

export default config;